package strings;

import static net.mindview.util.Print.print;

import java.util.Arrays;
import java.util.regex.Pattern;

import org.junit.Test;

public class SplitDemoMY {
	
	@Test
	//@Ignore
	public void test001() {
		String input = "This!!unusual use!!of exclamation!!points";
		print(Arrays.toString(Pattern.compile("!!").split(input)));
		// Only do the first three:
		print(Arrays.toString(Pattern.compile("!!").split(input, 3)));
	}
}
